<template>
  <view class="index">
    <Search-Box />
    <Tabbar-Box />
  </view>
</template>

<script>
import Taro, { useShareTimeline } from '@tarojs/taro';
import { reactive, toRefs } from 'vue';
import SearchBox from './components/SearchBox.vue';
import TabbarBox from './components/TabbarBox.vue';
export default {
  name: 'Index',
  components: {
    'Search-Box': SearchBox,
    'Tabbar-Box': TabbarBox
  },
  onShareAppMessage() { },
  onShareTimeline() {
    return {
      title: this.title, //字符串  自定义标题
      // query: `id=${this.data.shop.shop_id}`,  //页面携带参数
      imageUrl: ''   //图片地址
    }
  },
  setup() {
    const state = reactive({

    });
    Taro.showShareMenu({
      withShareTicket: true
    })
    return {
      ...toRefs(state),
    }
  }
}
</script>

<style lang="scss">
.index {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F8F8F8 !important;
}
</style>
